]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: When updating actor content, evict old content from cache
authorRay Strode <rstrode@redhat.com>
Fri, 22 Mar 2013 19:03:04 +0000 (15:03 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 26 Mar 2013 21:02:04 +0000 (17:02 -0400)
Normally backgrounds get evicted from the cache when their actor is
destroyed.  If the actor changes content without destroying itself,
though, we should evict the old content from the cache, too.

https://bugzilla.gnome.org/show_bug.cgi?id=696157

js/ui/background.js

index aa238e7412a38017624ef1db7ee7eb64ab562830..e95cbc0a1ca4f8bfd546e7563544e2a74e6c743c 100644 (file)
@@ -372,6 +372,7 @@ const Background = new Lang.Class({
         content.brightness = this._brightness;
         content.vignette_sharpness = this._vignetteSharpness;
 
+        this._cache.removeImageContent(content);
         this._images[index].content = content;
         this._watchCacheFile(filename);
     },